package com.ysz.gulimall.product;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


/*
    常规数据 读多写少，即时性要求不高得数据，可以用spring-cache
    特殊数据
 */
@SpringBootApplication
@EnableDiscoveryClient
@MapperScan("com.ysz.gulimall.product.dao")
@EnableRedisHttpSession     //开启SpringSession
@EnableFeignClients(basePackages = "com.ysz.gulimall.product.feign")
public class GulimallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }
}
